package com.zsy.iweb.service.impl;

import com.zsy.iweb.dao.ProductDao;
import com.zsy.iweb.service.ProductService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.zsy.iweb.pojo.Product;

@Service
public class ProductServiceImpl implements ProductService {
    @Autowired
    private ProductDao productDao;
    @Override
    public Product findByPid(Integer pid) {
        return productDao.selectById(pid);
    }
}
